# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Dhruvin Gandhi <contact@dhruvin.dev>
pkgname=nvim-lspconfig
pkgver=0.1.7
pkgrel=0
pkgdesc="quickstart configurations for the neovim LSP client"
url="https://github.com/neovim/nvim-lspconfig"
arch="noarch"
license="Apache-2.0"
subpackages="$pkgname-doc"
source="https://github.com/neovim/nvim-lspconfig/archive/v$pkgver/nvim-lspconfig-$pkgver.tar.gz"
options="!check" # requires entire neovim tree

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra lua plugin "$pkgdir"/usr/share/nvim/site
	install -Dm644 doc/*.txt -t "$pkgdir"/usr/share/nvim/site/doc
	install -Dm644 README.md doc/*.md -t "$pkgdir"/usr/share/doc/$pkgname
}

doc() {
	default_doc
	amove usr/share/nvim/site/doc
}

sha512sums="
62bbfa55f418da4819e3d4f69b967515687d0294768381ecb8e07af7e7a1b84cd4695563c373e89929e60ceaa0d44400e5b706d6909858e6786e1c467f837e23  nvim-lspconfig-0.1.7.tar.gz
"
